package com.company.task4;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class AddStudentInfo{

    public static void addFunction(List<ArrayList> studentList) {

        Scanner sc = new Scanner(System.in);

        List list = new ArrayList();
        studentList.add((ArrayList) list);

        System.out.println("请输入添加的学生学号：");
        list.add(sc.next());

        System.out.println("请输入添加的学生姓名：");
        list.add(sc.next());

        System.out.println("请输入添加的学生年龄：");
        list.add(sc.nextInt());
    }
}
